package com.sq.partner.manager.controller;


import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import com.sq.partner.manager.service.GetwayChannelUserService;
import com.sq.partner.manager.util.LogUtil;

@Controller
@RequestMapping(value = "/frame")
public class FrameController {
	private static Logger logger = LogUtil.getLog(FrameController.class);
	@Resource
	private GetwayChannelUserService userService;
	
	/**
     * 主显示
     * @param model
     * @return
     */
    @RequestMapping(value = "/main")
    public String main(ModelMap model,HttpServletRequest request) throws Exception {
        return "frame/main";
    }
    
	/**
     * 主显示
     * @param model
     * @return
     */
    @RequestMapping(value = "/left")
    public String left(ModelMap model,HttpServletRequest request) throws Exception {
        return "frame/left";
    }
    
	/**
     * index
     * @param model
     * @return
     */
    @RequestMapping(value = "/index")
    public String index(ModelMap model,HttpServletRequest request) throws Exception {
        return "index";
    }
    
	/**
     * 菜单
     * @param model
     * @return
     */
    @RequestMapping(value = "/mobile")
    public String moblie(ModelMap model,HttpServletRequest request) throws Exception {
        return "frame/mobile";
    }
    
	/**
     * 菜单
     * @param model
     * @return
     */
    @RequestMapping(value = "/top")
    public String top(ModelMap model,HttpServletRequest request) throws Exception {
        return "frame/top";
    }
    
	/**
     * 菜单
     * @param model
     * @return
     */
    @RequestMapping(value = "/footer")
    public String footer(ModelMap model,HttpServletRequest request) throws Exception {
        return "frame/footer";
    }
    
}
